﻿<!DOCTYPE html>
<html >
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=1200, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="email=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>@ViewBag.Title</title>
    <meta name="keywords" content="企业网站">
    <meta name="description" content="企业网站">
    <link rel="stylesheet" href="/ui/css/idangerous.swiper.css" asp-append-version="true">
    <link rel="stylesheet" href="/ui/css/jquery.bxslider.css" asp-append-version="true">
    <link rel="stylesheet" href="/ui/css/reset.css" asp-append-version="true">
    <link rel="stylesheet" href="/ui/css/public.css" asp-append-version="true">
    <link rel="stylesheet" href="/ui/css/public-other.css" asp-append-version="true">
    <link rel="stylesheet" href="/ui/css/uibox.css" asp-append-version="true">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1, user-scalable=no">
    
    @RenderSection("styles", required: false)
</head>
<body class="uibox">
     <div class="wrapper-full">
        <img class="icon_back" src="/ui/image/icon-back.png">
        @await Component.InvokeAsync(typeof(HeaderViewComponent))
        @RenderBody()
        @await Component.InvokeAsync(typeof(FooterViewComponent))
    </div>
    <script src="/ui/js/jquery-1.12.4.min.js" asp-append-version="true"></script>
    <script src="/ui/js/jquery.nicescroll.min.js" asp-append-version="true"></script>
    <script src="/ui/js/idangerous.swiper.min.js" asp-append-version="true"></script>
    <script src="/ui/js/moment.min.js" asp-append-version="true"></script>
    <script src="/ui/js/moment-with-locales.min.js" asp-append-version="true"></script>
    <script src="/ui/js/prefixfree.min.js" asp-append-version="true"></script>
    <script src="/ui/js/common.js" asp-append-version="true"></script>
    <script src="/ui/js/jquery.pagination.js" asp-append-version="true"></script>
    <script src="/ui/js/AdMove.js" asp-append-version="true"></script>
    <script>
        $(function () {
            let w = window.innerWidth || window.screen.availWidth;
            if (w) {
                let a = w * 50 / 375 > 55.2 ? 55.2 : w * 50 / 375;
                document.getElementsByTagName('html')[0].style.fontSize = a + 'px';
            } else {
                document.getElementsByTagName('html')[0].style.fontSize = 50 + 'px';
            }
            var toTop = $('.icon_back');
            // 监听滚动条到顶部的距离
            $(window).scroll(function () {
                if ($(window).scrollTop() > 100) {
                    toTop.css('display', 'block');
                } else {
                    toTop.css('display', 'none');
                }
            });

            toTop.click(function () {
                $('html,body').animate({ scrollTop: '0px' }, 500);
            });
            $(".nav-item").siblings().removeClass('cur');
            var slchannelindex = $("#selectchanIndex").val()??"home";
            console.log(slchannelindex);
            $(".nav-item").each(function () {
                if ($(this).data('navindex') == slchannelindex){
                    $(this).addClass('cur');
                }
            });
        });
    </script>
    @RenderSection("scripts", required: false)
</body>
</html>
